package com.eliza.demo.fg

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageButton
import androidx.navigation.Navigation
import com.eliza.demo.R

class F1Fragment : Fragment() {

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        // Inflate the layout for this fragment
        var view = inflater.inflate(R.layout.fragment_f1, container, false)
        view.findViewById<ImageButton>(R.id.f1_imgBtn).setOnClickListener {
            Navigation.findNavController(view).apply {
                navigate(R.id.action_f1Fragment_to_f2Fragment)
            }
        }
        return view
    }

}